Intrinsically defined sorting functions
نویسنده
چکیده
We exhibit intrinsic definitions of inequality tests, sorting functions and comparators as isomorphic presentations of total preorders (orders): • Inequality tests are functions of type T × T → Bool that are reflexive, transitive and total. • Sorting functions are functions of type T ∗ → T ∗ (mapping finite sequences of elements of type T ) that permute their input and do so consistently for each pair of elements. • Comparators are functions of type T × T → T × T that are permutative, transitive and idempotent. The definitions are intrinsic in the sense that they do not refer to predefined orders or to each other. Furthermore the isomorphisms can be defined parametrically polymorphically: the mapping from inequality tests to sorting functions is the class of stable comparator-based sorting algorithms; from comparators to sorting functions it is sorting networks (comparator-based sorting algorithms); the other mappings are trivial. So defining any one concrete presentation of an order automatically provides all three presentations. Whilst mathematically elementary and pleasingly simple, we believe our definitions of sorting functions and comparators as isomorphic characterizations of orders to be novel and of interest in themselves. We investigate a number of variations on the definition of sorting functions to illustrate that some care must be exercised in formulating their definition. Drawing on the resulting conceptual symmetry of inequality tests, sorting functions and comparators—no presentation has definitional preeminence over the other—we raise the question: How should orders be presented? We consider the question itself a conceptual contribution of this paper. We suggest that there are powerful reasons for choosing sorting functions instead of the more obvious inequality tests, namely the possibility of sorting in worst-case linear time), but defer showing this to two subsequent papers.
منابع مشابه
Disorder-to-Order Transition of an Active-Site Loop Mediates the Allosteric Activation of Sortase A.
Intrinsically disordered proteins and intrinsically disordered regions are implicated in many biological functions and associated with many diseases, but their conformational characterizations are challenging. The disordered β6/β7 loop of Staphylococcus aureus sortase A is involved in the binding of both sorting signals and calcium. Calcium binding allosterically activates the enzyme, but the d...
متن کاملOptimal Placement and Sizing of Distributed Generation Via an Improved Nondominated Sorting Genetic Algorithm II
The use of distributed generation units in distribution networks has attracted the attention of network managers due to its great benefits. In this research, the location and determination of the capacity of distributed generation (DG) units for different purposes has been studied simultaneously. The multi-objective functions in the optimization model are reducing system line losses; reducing v...
متن کاملSorting in Lattices
In a totally ordered set the notion of sorting a finite sequence is defined through a suitable permutation of the sequence’s indices. In this paper we prove a simple formula that explicitly describes how the elements of a sequence are related to those of its sorted counterpart. As this formula relies only on the minimum and maximum functions we use it to define the notion of sorting for lattice...
متن کاملGeometric Hermite interpolation by a family of intrinsically defined planar curves
This paper proposes techniques of interpolation of intrinsically defined planar curves to Hermite data. In particular, a family of planar curves corresponding to which the curvature radius functions are polynomials in terms of the tangent angle are used for the purpose. The Cartesian coordinates, the arc lengths and the offsets of this type of curves can be explicitly obtained provided that the...
متن کاملA New Meta-Heuristic Multi- Objective Approach for Optimal Dispatch of Dispersed and Renewable Generating Units in Power Distribution Systems
The application of stochastic methods in engineering research and optimization has been increasing over the past few decades. Ant Colony Optimization, in particular, has been attracting growing attention as a promising approach both in discrete and continuous domains. The present work proposes a multiobjective Ant Colony Optimization for continuous domains showing good convergence properties an...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2007